package io.geekidea.boot.test.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 参数
 *
 * @author geekidea
 * @since 2025-02-19
 */
@Data
@Schema(description = "参数")
public class CollegesDto implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    @NotBlank(message = "code不能为空")
    @Length(max = 255, message = "长度超过限制")
    private String code;

    @NotBlank(message = "name不能为空")
    @Length(max = 255, message = "长度超过限制")
    private String name;

}


